#ifndef __CITEMPROPERTIES_INCLUDED__
#define __CITEMPROPERTIES_INCLUDED__
#include "c_xml_item_properties.h"
#endif

c_xmlitemproperties::~c_xmlitemproperties(){
	
//	std::cout<<"Destructor Item P Comienza"<<std::endl;
	
	if (PropertyName) {
		delete[] PropertyName;
		PropertyName = NULL;
	}


	
	if (PropertyValue) {
		delete[] PropertyValue;
		PropertyName = NULL;
	}

	

}



c_xmlitemproperties::c_xmlitemproperties(char * P_Name, char * P_Value){
	
	PropertyName = new char[strlen(P_Name)+1];	
	PropertyValue = new char[strlen(P_Value)+1];

	strcpy (PropertyName,P_Name);
	strcpy (PropertyValue,P_Value);

	//std::cout << PropertyName <<std::endl;
}


int c_xmlitemproperties::SetName(char * P_Name){

	PropertyName = P_Name;	
	return(true);

	
}




void c_xmlitemproperties::GetName(char * &str){
	strcpy(str,PropertyName);
	//return (this->PropertyName);
	
}




int c_xmlitemproperties::SetValue(char * P_Value){

	PropertyValue = P_Value;
	return(true);

}



void c_xmlitemproperties::GetValue(char * &str){
	strcpy(str,PropertyValue);
	//return (this->PropertyValue);
	
}
